package com.itbaiwei.testday01.day01.annotation;

/**
 * Class: Main2
 * Description:
 * Author: haijun.xu
 * Date: 2025/4/24 20:44
 */

enum Season{

    SPRING("春天","10-  20C"),
    SUMMER("夏天","10-  20C"),
    AUTUMN("秋天","10-  20C"),
    WINTER("冬天","10-  20C");

    private String chinaName;
    private String temp;
    Season(String chinaName,String temp){
        this.chinaName=chinaName;
        this.temp=temp;
    }

    public String  getSeasonInfo(){
        return chinaName+"温度范围："+temp;
    }

}


public class Main2 {
    public static void main(String[] args) {
        Season summer = Season.SUMMER;
        System.out.println(summer.getSeasonInfo());


    }
}
